const AdminModel = require('./../../utils/db');
class Admin{
  static getAdminByPassAndName({ username, password }) {
    return new Promise((resolve, reject) => {
      AdminModel.findAdminData(username, password).then(res => {
        resolve(res);
      }).catch(err => {
        reject(err);
      })
    })
  }
}

module.exports = Admin